package list;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-04-11
 * Time:11:30
 */
public class Text {
    public static void main(String[] args) {
        ListNode fw=new ListNode();
       for(int i=6;i>0;i--)
       {
           fw.addHead(i);
       }
       fw.show();

       //fw.reverseBetween();
        ListNode.List ret=fw.reverseBetween(fw.head,2,5);
        fw.head=ret;
        fw.show();

       // fw.clear();
    }
}
